package com.xyzisme76.dao;

import com.xyzisme76.pojo.Course;
import com.xyzisme76.pojo.Student;
import com.xyzisme76.pojo.User;

import java.util.List;

public interface CourseDao {
    List<Course> getCourseList();

    Course getCourseByCno(int cno);
    // select * from user where name = #{name}(sql)
    Course getCourseByCName(String cname);
    //select * from user where pwd = #{pwd}(sql)
    int addCourse(Course course);

    int deleteCourse(String cno);

    int updateCourse(Course course);

}
